package com.hmy.cornpestdet.mapper;

import com.hmy.cornpestdet.pojo.CircleArea;
import com.hmy.cornpestdet.pojo.MarkerPoint;
import com.hmy.cornpestdet.pojo.PolygonArea;
import com.hmy.cornpestdet.utils.Result;
import com.hmy.cornpestdet.vo.CircleAreaVo;
import com.hmy.cornpestdet.vo.ReactAreaVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface UserMapMapper {
    //标记点
    public List<MarkerPoint> getAllMarkerPointByUid(int uid);

    public int deleteMarkerPointByPid(String pid);

    public int addMarkerPoint(MarkerPoint markerPoint);
    //圆形区域
    public CircleArea getCircleArea(int uid);

    public int addCircleArea(CircleArea circleArea);

    public int deleteCircleArea(int uid);

    public int updateCircleArea(CircleArea circleArea);
    //多边形区域
    public PolygonArea getPolygonArea(int uid);

    public int addPolygonArea(PolygonArea polygonArea);

    public int updatePolygonArea(PolygonArea polygonArea);

    public int deletePolygonArea(int uid);

    //更新用户信息
    public int updateUserProvince(int uid, String province);

    public String getUserPointWindowInfoByPid(String pid);

    public int updateUserPointWindowInfoByPid(String pid, String info);

    //获取水稻种植区形参的矩形区域
    public ReactAreaVo  getRiceReactArea(int uid);

}
